#define  _CRT_SECURE_NO_WARNINGS 1

#include "Heap.h"

void TestHeap()
{
	/*Heap Hp;
	HeapInit(&Hp);

	HeapPush(&Hp, 8);
	HeapPush(&Hp, 7);
	HeapPush(&Hp, 44);
	HeapPush(&Hp, 6);
	HeapPush(&Hp, 2);
	HeapPush(&Hp, 15);
	HeapPush(&Hp, 27);

	for (int i = 0; i < Hp.size; ++i)
	{
		printf("%d ", Hp.arr[i]);
	}
	printf("\n");

	HeapDestory(&Hp);*/

	HDataType* arr = TopK_1000(10);

	for (int i = 0; i < 10; ++i)
	{
		printf("%d ", arr[i]);
	}
	printf("\n");

	free(arr);
	arr = NULL;
}

int main()
{
	TestHeap();

	return 0;
}